package cn.snowheart.rabbitmq.hello;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author liuwanxiang
 * @version 2019/05/27
 */
@Slf4j
@Component
@RabbitListener(queues = "hello")
public class HelloBConsumer {

    @RabbitHandler
    public void process(String content) {
        log.info("Hello B Consume: {}", content);
    }

}
